package com.sunwayworld.basemodule.coredata.product.bean;

import com.sunwayworld.framework.data.annotation.Id;
import com.sunwayworld.framework.data.annotation.Table;
import com.sunwayworld.framework.data.annotation.Transient;
import com.sunwayworld.framework.support.domain.Insertable;
import com.sunwayworld.framework.support.domain.AbstractInsertable;
import java.time.LocalDateTime;
import org.springframework.format.annotation.DateTimeFormat;
import com.alibaba.fastjson.annotation.JSONField;

/**
 * 检测模板
 * 
 * @author hul@sunwayworld.com
 * @date 2023-01-10
 */
@Table("T_LIMS_PRODUCT")
public class LimsProductBean extends AbstractInsertable<Long> implements Insertable<Long> {

    @Transient
    private static final long serialVersionUID = -82566196618711043L;

    @Id
    private Long id;// 主键
    private Long productMainId;// 检测项目id
    private String productCode;// 检测项目编号
    private Long etId;// 检测模板id
    private String etCode;// 检测模板编号
    // 字段迁移到实验模板本体表，不和检测项目绑定了
//    private String etName;// 实验模板名称
//    private Long judgId;// 判定依据id
//    private String judgCode;// 判定依据编号
    private String sampleTypeCode;// 样本类型编码
    private String sampleTypeName;// 样本类型名称
    private String createdById;// 制单人编码
    private String createdByName;// 制单人名称
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdTime;// 制单时间
    private String createdByOrgId;// 制单人单位编码
    private String createdByOrgName;// 制单人单位名称

//    public String getEtName() {
//        return etName;
//    }
//
//    public void setEtName(String etName) {
//        this.etName = etName;
//    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getProductMainId() {
        return productMainId;
    }

    public void setProductMainId(Long productMainId) {
        this.productMainId = productMainId;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public Long getEtId() {
        return etId;
    }

    public void setEtId(Long etId) {
        this.etId = etId;
    }

    public String getEtCode() {
        return etCode;
    }

    public void setEtCode(String etCode) {
        this.etCode = etCode;
    }

/*    public Long getJudgId() {
        return judgId;
    }

    public void setJudgId(Long judgId) {
        this.judgId = judgId;
    }

    public String getJudgCode() {
        return judgCode;
    }

    public void setJudgCode(String judgCode) {
        this.judgCode = judgCode;
    }*/

    public String getSampleTypeCode() {
        return sampleTypeCode;
    }

    public void setSampleTypeCode(String sampleTypeCode) {
        this.sampleTypeCode = sampleTypeCode;
    }

    public String getSampleTypeName() {
        return sampleTypeName;
    }

    public void setSampleTypeName(String sampleTypeName) {
        this.sampleTypeName = sampleTypeName;
    }

    public String getCreatedById() {
        return createdById;
    }

    public void setCreatedById(String createdById) {
        this.createdById = createdById;
    }

    public String getCreatedByName() {
        return createdByName;
    }

    public void setCreatedByName(String createdByName) {
        this.createdByName = createdByName;
    }

    public LocalDateTime getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(LocalDateTime createdTime) {
        this.createdTime = createdTime;
    }

    public String getCreatedByOrgId() {
        return createdByOrgId;
    }

    public void setCreatedByOrgId(String createdByOrgId) {
        this.createdByOrgId = createdByOrgId;
    }

    public String getCreatedByOrgName() {
        return createdByOrgName;
    }

    public void setCreatedByOrgName(String createdByOrgName) {
        this.createdByOrgName = createdByOrgName;
    }

}
